package core
{
/**
 * @author daichangxin
 */
public class LightOnCommand implements ICommand
{
	private var _light:Light;
	
	public function LightOnCommand(light:Light)
	{
		_light = light;
	}
	
	public function execute() : void
	{
		_light.on();
	}
	
	public function undo():void
	{
		_light.off();
	}
}
}
